import { toDateString } from '@/utils'

export default [
  {
    dataIndex: 'RoleID',
    title: '角色ID',
    width: 70,
    align: 'center'
  },
  {
    dataIndex: 'RoleName',
    title: '角色名',
    width: 120,
  },
  {
    dataIndex: 'RoleDesc',
    title: '角色描述',
  },
  {
    dataIndex: 'CreateTime',
    title: '创建时间',
    width: 150,
    align: 'center',
    customRender: (record) => {
      return toDateString(record.value)
    }
  },
  {
    dataIndex: 'Action',
    title: '操作',
    width: 160,
    align: 'center',
  }
]
